﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TournamentBet.ascx.cs" Inherits="VirtualTournaments.Frontend.MenuControls.GamblingManagerMenu.InnerControls.TournamentBet" %>

<link href="../../../App_Themes/TournamentManager/TournamentManager.css" rel="stylesheet" type="text/css" />

<asp:Panel ID="ContentPanel" runat="server">

    <div style="position:fixed;height:100%;width:100%;top:0px;left:0px;
        background-color:#000000;filter:alpha(opacity=55);-moz-opacity:.55;opacity:.55;z-index:50;" 
        id="pagedimmer" runat="server" visible="false">
    </div>

    <div style="position:fixed;background-color:#888888; border:1px solid #999999; z-index:50; left:20%; 
        right:20%; top:20%;" id="msgbox" runat="server" visible="false">
        <div style="margin:5px;"> 
            <table width="100%" style="background-color:#FFFFFF; border:1px solid #999999;"> 
                <tr> 
                    <td colspan="2" style="font-family:tahoma; font-size:11px; font-weight:bold; 
                        padding-left:5px; background-image: url(winxp.gif); height:22px;">Confirm your selection.
                    </td> 
                </tr> 
                
                <tr>
                    <td style="width:100px; text-align:center;"></td> 
                    
                    <td style="font-family:tahoma; font-size:11px;padding-left:5px;">
                        <asp:Label ID="ConfirmMessageLabelTitle" runat="server" Text="Please, confirm the following data for your bet:"></asp:Label>
                        <br />
                        <asp:Label ID="BetInfoLabel" runat="server" Font-Size="Large"></asp:Label>
                        <br />
                        <asp:Label ID="StatusLabel" runat="server" Text="Waiting for confirmation..."></asp:Label>
                    </td> 
                </tr>
                
                <tr>
                    <td colspan="2" style="border-top:1px solid #CCCCCC; padding-top:5px;text-align:right;">
                        <asp:Button ID="ConfirmCurrentBetButton" Text="OK" runat="server" OnClick="ConfirmCurrentBetButton_OnClick" />
                        <asp:Button ID="CancelCurrentBetButton" Text="Cancel" runat="server" OnClick="CancelCurrentBetButton_OnClick"/>
                        <asp:Button ID="FinishCurrentBetButton" Text="Finish" runat="server" OnClick="FinishCurrentBetButton_OnClick" Enabled="false"/>
                    </td>
                </tr>
            </table> 
        </div> 
    </div> 
    
    <asp:Table ID="MainTable" runat="server" Width="100%">
        <asp:TableHeaderRow ID="TournamentNameRow" runat="server">
            <asp:TableHeaderCell></asp:TableHeaderCell>
            <asp:TableHeaderCell></asp:TableHeaderCell>
            <asp:TableHeaderCell HorizontalAlign="Center">
                <asp:Label ID="TournamentNameLabel" runat="server"></asp:Label>
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
        
        <asp:TableRow>
            <asp:TableCell>
                <br />
            </asp:TableCell>
        </asp:TableRow>
        
        <asp:TableHeaderRow ID="TitlesRow">
            <asp:TableHeaderCell>Available Teams</asp:TableHeaderCell>
            <asp:TableHeaderCell></asp:TableHeaderCell>
            <asp:TableHeaderCell>Team Position</asp:TableHeaderCell>
            <asp:TableHeaderCell HorizontalAlign="Center">Bet Amount</asp:TableHeaderCell>
        </asp:TableHeaderRow>
        
        <asp:TableRow ID="ContentRow">
            
            <asp:TableCell ID="ListBoxCell" HorizontalAlign="Center">
                <asp:ListBox ID="TeamsListBox" runat="server" Width="80%" Rows="10" Font-Size="Large" Font-Names="Calibri"></asp:ListBox>
            </asp:TableCell>
            
            <asp:TableCell ID="ButtonsCell">
                <asp:Table runat="server">
                    <asp:TableRow >
                        <asp:TableCell>
                            <asp:Button ID="FirstPlaceToButton" Text="-->" runat="server" OnClick="FirstPlaceToButton_OnClick"/>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow >
                        <asp:TableCell>
                            <asp:Button ID="FirstPlaceFromButton" Text="<--" runat="server" OnClick="FirstPlaceFromButton_OnClick"/>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow><asp:TableCell><br /></asp:TableCell></asp:TableRow>
                    <asp:TableRow >
                        <asp:TableCell>
                            <asp:Button ID="SecondPlaceToButton" Text="-->" runat="server" OnClick="SecondPlaceToButton_OnClick"/>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow >
                        <asp:TableCell>
                            <asp:Button ID="SecondPlaceFromButton" Text="<--" runat="server" OnClick="SecondPlaceFromButton_OnClick"/>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow><asp:TableCell><br /></asp:TableCell></asp:TableRow>
                    <asp:TableRow >
                        <asp:TableCell>
                            <asp:Button ID="ThirdPlaceToButton" Text="-->" runat="server" OnClick="ThirdPlaceToButton_OnClick"/>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow >
                        <asp:TableCell>
                            <asp:Button ID="ThirdPlaceFromButton" Text="<--" runat="server" OnClick="ThirdPlaceFromButton_OnClick"/>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            
            <asp:TableCell ID="TeamPositionCell" HorizontalAlign="Center">
                <asp:Table runat="server">
                    <asp:TableRow><asp:TableCell>1º Place</asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell ID="FirstPlaceTeam" Text="Team: "></asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell>-</asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell>2º Place</asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell ID="SecondPlaceTeam" Text="Team: "></asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell>-</asp:TableCell></asp:TableRow>                    
                    <asp:TableRow><asp:TableCell>3º Place</asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell ID="ThirdPlaceTeam" Text="Team: "></asp:TableCell></asp:TableRow>
                    <asp:TableRow><asp:TableCell>-</asp:TableCell></asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            
            <asp:TableCell ID="BetsAmountCell" VerticalAlign="Top">
                <asp:Table ID="BetTable" runat="server" Width="100%">
                    <asp:TableRow runat="server" VerticalAlign="Top">
                        <asp:TableCell HorizontalAlign="Right" Text="u$s"></asp:TableCell>
                        <asp:TableCell HorizontalAlign="Center"><asp:TextBox ID="FirstPlaceBetAmountTextBox" runat="server"></asp:TextBox></asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    
                    <asp:TableRow runat="server" >
                        <asp:TableCell HorizontalAlign="Right" Text="u$s"></asp:TableCell>
                        <asp:TableCell HorizontalAlign="Center"><asp:TextBox ID="SecondPlaceBetAmountTextBox" runat="server"></asp:TextBox></asp:TableCell>
                    </asp:TableRow>
                       <asp:TableRow>
                        <asp:TableCell>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    
                    <asp:TableRow runat="server">
                        <asp:TableCell HorizontalAlign="Right" Text="u$s"></asp:TableCell>
                        <asp:TableCell HorizontalAlign="Center"><asp:TextBox ID="ThirdPlaceBetAmountTextBox" runat="server"></asp:TextBox></asp:TableCell>
                    </asp:TableRow>
                       <asp:TableRow>
                        <asp:TableCell>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <br />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            
        </asp:TableRow>
    </asp:Table>
    <asp:Table ID="TeamInfoTable" runat="server" Width="50%">
        <asp:TableRow>
            <asp:TableCell Width="25%"></asp:TableCell>
            <asp:TableCell Width="50%" HorizontalAlign="Center"><asp:Button runat="server" ID="TeamInfoButton" Text="Team Info" OnClick="TeamInfoButton_OnClick" 
            Font-Bold="true" Font-Size="Large"/></asp:TableCell>
            <asp:TableCell Width="25%"></asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <br />
   
    <asp:Table ID="BetButtonsTable" runat="server" Width="100%">
        <asp:TableRow>
            <asp:TableCell HorizontalAlign="Right"><asp:Button ID="AcceptBetButton" runat="server" Text="Accept Bet" OnClick="AcceptBetButton_OnClick"/></asp:TableCell>
            <asp:TableCell HorizontalAlign="Center"><asp:Button ID="ResetBetButton" runat="server" Text="Reset Bet" OnClick="ResetBetButton_OnClick"/></asp:TableCell>
            <asp:TableCell HorizontalAlign="Left"><asp:Button ID="CancelBetButton" runat="server" Text="Cancel Bet" OnClick="CancelBetButton_OnClick"/></asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <br />
    
    <asp:Table ID="OddsInfoTable" runat="server" Width="100%">
        <asp:TableHeaderRow>
            <asp:TableHeaderCell>Team</asp:TableHeaderCell>
            <asp:TableHeaderCell>Winner</asp:TableHeaderCell>
            <asp:TableHeaderCell>Second</asp:TableHeaderCell>
            <asp:TableHeaderCell>Third</asp:TableHeaderCell>
        </asp:TableHeaderRow>
    </asp:Table>
    <br />
    
    <div id="ButtonBackDiv" class="ButtonBackDivCssClass">
        <asp:Button ID="TournamentBetGoBackButton" runat="server" OnClick="TournamentBetGoBackButton_OnClick" Text="< Go Back >" 
        CssClass="CreateTournamentButtonCssClass" BackColor="Transparent" BorderStyle="None"/>
    </div>
    <br />
    
</asp:Panel> 

